export default {
	mode: 'universal',
	/*
  ** Headers of the page
  */
	head: {
		title: process.env.npm_package_name || '',
		meta: [
			{ charset: 'utf-8' },
			{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
			{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
		],
		link: [
			{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
			{ rel: 'stylesheet', type: 'text/css', href: '//at.alicdn.com/t/font_1168872_ehvuah8v57g.css' }
		]
	},
	/*
  ** Customize the progress-bar color
  */
	loading: { color: '#fff' },
	/*
  ** Global CSS
  */
	css: [ 'element-ui/lib/theme-chalk/index.css', 'assets/main.css' ],
	/*
  ** Plugins to load before mounting the App
  */
	plugins: [
		'@/plugins/element-ui',
		// '@/plugins/localStorage'
		{ src: '@/plugins/localStorage', ssr: false },
		'@/plugins/axios',
		{ src: '@/plugins/vue2editor', ssr: false }
	],
	/*
  ** Nuxt.js dev-modules
  */
	buildModules: [],
	/*
  ** Nuxt.js modules
  */
	modules: [
		// Doc: https://axios.nuxtjs.org/usage
		'@nuxtjs/axios'
	],
	/*
  ** Axios module configuration
  ** See https://axios.nuxtjs.org/options
  */
	axios: {
		baseURL: 'http://157.122.54.189:9095' //新增备用服务器备用地址,线上服务器
		// baseURL: 'http://127.0.0.1:1337' //新增axios默认请求路径
	},
	/*
  ** Build configuration
  */
	build: {
		transpile: [ /^element-ui/ ],
		/*
    ** You can extend webpack config here
    */
		extend(config, ctx) {}
	}
};
